Component({
    externalClasses: [ "g-class", "g-class-mask" ],
    properties: {
        types: {
            type: String,
            value: ""
        },
        show: {
            type: Boolean,
            value: false
        },
        isloading: {
            type: Boolean,
            value: false
        },
        iscancel: {
            type: Boolean,
            value: true
        },
        cancelTxt: {
            type: String,
            value: "取 消"
        },
        successTxt: {
            type: String,
            value: "确 定"
        },
        onemsg: {
            type: String,
            value: ""
        },
        twomsg: {
            type: String,
            value: ""
        },
        mapping: {
            type: String,
            value: ""
        },
        mappingstyle: {
            type: String,
            value: ""
        }
    },
    data: {
        imgurl: {
            success: "",
            danger: "",
            del: ""
        }
    },
    ready: function() {
        this.setData({
            "state.loading": false
        });
    },
    methods: {
        inCancel: function() {
            this.data.isloading || this.triggerEvent("incancel");
        },
        inSuccess: function() {
            this.data.isloading || this.triggerEvent("insuccess");
        }
    }
});